package cc.bookcloud.tool.ocr.common.git;

import java.util.LinkedHashMap;
import java.util.Map;

public class GCRStoreSingleton {

    // 单例模式
    private static GCRStoreSingleton storeSingleton = new GCRStoreSingleton();

    private Map<String,RecordLine> lineMap = new LinkedHashMap<>();

    // 缓存版本信息
    private String version = "";

    private GCRStoreSingleton(){
    }


    public static GCRStoreSingleton instance(){
        return storeSingleton;
    }


    public void addLine(String key,RecordLine recordLine){
        lineMap.put(key,recordLine);
    }

    public RecordLine getLine(String key){
        return lineMap.get(key);
    }

    public void setVersion(String version){
        this.version = version;
    }

    public String getVersion(){
        return this.version;
    }


}
